package element;

public class State implements Comparable<State> {
    public int id;
    public boolean isLast;
    public boolean isRollBack;
    public String type;

    public State(int id, String type, boolean isRollBack, boolean isLast) {
        this.id = id;
        this.isLast = isLast;
        this.isRollBack = isRollBack;
        this.type = type;
    }
    @Override
    public int compareTo(State o) {
        return this.id - o.id;
    }
}

